package com.lingo.mgr.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import com.lingo.common.core.domain.BaseEntity;

/**
 * 对话消息记录对象 chat_session_record
 *
 * @author lingo
 * @date 2023-11-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chat_session_record")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChatSessionRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 消息记录id
     */
    @TableId(value = "session_record_id")
    private Long sessionRecordId;
    /**
     * 聊天消息id
     */
    private Long sessionId;
    /**
     * 用户userId
     */
    private Long userId;
    /**
     * 对话提问
     */
    private String messageQuestion;
    /**
     * 对话答案
     */
    private String messageAnswer;
    /**
     * 对话状态 1-生成中 2-成功 3-失败
     */
    private Integer answerResult;
    /**
     * 调用ip
     */
    private String createIp;

}
